package com.imooc.reader.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.imooc.reader.entity.Book;

public interface BookService {
    public IPage<Book> paging(Long categoryId, String order, Integer page, Integer rows);

    /**
     * 通过id查询书籍信息
     */

    public Book selectById(Long bookId);

    /**
     * 新增图书功能
     */
    public Book creatBook(Book book);

    /**
     * 分页查询图书
     */
    public IPage<Book> pagings(Long categoryId, String order, Integer page, Integer rows);


}
